package com.jic.manager.mapper;

import com.jic.manager.entity.CmsTpage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 模板页信息表
 * @author : 
 * @email : 
 * @since : 2020-03-05 12:01:34
 * @version : v1.0.0
 */
@Mapper
public interface  CmsTpageMapper {

    long insert(CmsTpage cmsTpage);

    long delete(Long id);

    long update(CmsTpage cmsTpage);

    CmsTpage queryByPrimaryKey(Long id);

    List<CmsTpage> query(CmsTpage cmsTpage);

    List<CmsTpage> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("cmsTpage") CmsTpage cmsTpage);

    long queryPageCount(CmsTpage cmsTpage);
    
    List<CmsTpage> queryPages(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("cmsTpage") CmsTpage cmsTpage);

    long queryPagesCount(@Param("cmsTpage") CmsTpage cmsTpage);
}